.class Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2$1;
.super Ljava/lang/Object;
.source "FragmentMeasuresList.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;)V
    .locals 0

    .line 155
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onDelete(Llt/noframe/gpsfarmguide/models/GroupModel;)V
    .locals 3

    .line 166
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v0

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/GroupModel;->getId()I

    move-result v1

    const/4 v2, 0x2

    invoke-virtual {v0, v2, v1}, Llt/noframe/gpsfarmguide/database/DB;->getMeasuresForList(II)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 167
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v0

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/GroupModel;->getId()I

    move-result p1

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/database/DB;->deleteGroup(I)Z

    .line 168
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    goto :goto_0

    .line 170
    :cond_0
    new-instance p1, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 171
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f1100c9

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 172
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f110115

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 173
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f110174

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 174
    invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;

    :goto_0
    return-void
.end method

.method public onNameChanged(Llt/noframe/gpsfarmguide/models/GroupModel;)V
    .locals 1

    .line 159
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/database/DB;->saveGroup(Llt/noframe/gpsfarmguide/models/GroupModel;)V

    .line 160
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2$1;->this$1:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    return-void
.end method
